#include "src/dictionaries/node_webrtc/rtc_dtls_fingerprint.hh"

#include "src/functional/validation.hh"

namespace node_webrtc {

template <typename T> class Maybe;

#define RTC_DTLS_FINGERPRINT_FN CreateRTCDtlsFingerprint

static Validation<RTC_DTLS_FINGERPRINT>
RTC_DTLS_FINGERPRINT_FN(const Maybe<std::string> &algorithm,
                        const Maybe<std::string> &value) {
  return Pure<RTC_DTLS_FINGERPRINT>({algorithm, value});
}

} // namespace node_webrtc

#define DICT(X) RTC_DTLS_FINGERPRINT##X
#include "src/dictionaries/macros/impls.hh"
#undef DICT
